package com.yl.zqy.config;

import com.yl.zqy.service.sys.SysConfigService;
import com.yl.zqy.service.sys.SysDictDataService;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CustomAutoConfiguration {
    @Bean
    ApplicationRunner customRunner(SysDictDataService dictDataService, SysConfigService configService) {
        return args -> {
            configService.initSysConfigParams();
            dictDataService.initDictDataCache();
        };
    }


}
